package lab02.Test12;

/**
 * Created by Administrator on 2017/10/19.
 */
public class Rectangular extends Shape {

    @Override
    public void area(double a, double b) {

        System.out.println("面积："+a*b);
    }
    @Override
    public void perimeter(double a, double b) {
        perimeter = 2*(a+b);
        System.out.println("周长："+2*(a*b));
    }
}
